package com.hu.web.controller;

import com.hu.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/*
* 用户服务
* */
@RestController
public class UserController {

    // @RequestMapping(value = "/user/{id}",method = RequestMethod.GET)
    @GetMapping("/user/{id}")
    public User getUserById(@PathVariable("id") Long id){
        return new User(id,"keai:"+id,"port:1000-intro信息");
    }
}
